package com.yzsj.socket.business.service.impl;

import com.yzsj.socket.business.dao.ElectricEnergyDao;
import com.yzsj.socket.business.domain.ElectricEnergyPO;
import com.yzsj.socket.business.service.ElectricEnergyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ElectricEnergyServiceImpl implements ElectricEnergyService {

    @Autowired
    private ElectricEnergyDao electricEnergyDao;

    @Override
    public List<ElectricEnergyPO> findAll() {
        return electricEnergyDao.findAll();
    }

    @Override
    public List<ElectricEnergyPO> findTopTen() {
        return electricEnergyDao.findTopTen();
    }

    @Override
    public int saveList(List<ElectricEnergyPO> list) {
        return electricEnergyDao.saveList(list);
    }
}
